
<?php 
    if($template->get('aProduct')){$aProduct = $template->get('aProduct'); ?>
    <div class="item default_hight_light_product_layout  <?php echo (isset($aProduct['isHightLight']) ? 'item_hightlight' : ''); ?>" val="<?php echo $aProduct['uri']; ?>">
        <div class="image_content">
            <img src="<?php echo URL::getLink('upload/'.(isset($aProduct['hightLightImage']) ? $aProduct['hightLightImage'] : $aProduct['image'])); ?>" alt="">
        </div>
        <div class="item_info">
            <p><?php echo $aProduct['name']; ?></p>
            <p class="price">Gia: <?php echo $aProduct['price']; ?> VND</p>
        </div>
        <div class="item_description">
            <p>Mo ta</p>
            <p><?php if(strlen($aProduct['description']) > 110){echo substr($aProduct['description'],0,110).' ...';}else{ echo $aProduct['description'];} ?></p>
            <a class="flat_button" href="<?php echo $aProduct['uri']; ?>">Thong tin chi tiet</a>
        </div>
        <div class="hightlight"></div>
        <?php echo ($template->get('title') ? '<div class="item_title">'. $template->get('title').'</div>' : ''); ?>
    </div>
<?php } ?>